package com.peg.dataobjects;

/**
 * @author sad
 */
public class ErrorMessage {

    private int startIndex;
    private int length;
    private String message;

    public ErrorMessage(int startIndex, int length, String message) {
        this.startIndex = startIndex;
        this.length = length;
        this.message = message;
    }

    public int getStartIndex() {
        return startIndex;
    }

    public int getLength() {
        return length;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return message;
    }
}
